import request from '@/utils/request'

// 获取联系人列表
export function getContactList(data) {
  return request({
    url: '/customer/bizcontact/list',
    method: 'post',
    data
  })
}

// 创建联系人
export function createContact(data) {
  return request({
    url: '/customer/bizcontact/save',
    method: 'post',
    data
  })
}

//修改联系人
export function updateContact(data) {
  return request({
    url: '/customer/bizcontact/update',
    method: 'post',
    data
  })
}

//删除联系人
export function delContact(params) {
  return request({
    url: '/customer/bizcontact/delete',
    method: 'delete',
    params
  })
}

//获取联系人详情
export function getContactInfo(id) {
  return request({
    url: `/customer/bizcontact/info/${id}`,
    method: 'get'
  })
}
